/*
 * showCategory.java
 *
 * Created on April 11, 2007, 12:05 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package finalintex2web;

import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Owner
 */
public class showCategory implements Action 
{
    
    /** Creates a new instance of showCategory */
    public showCategory() 
    {
    
    }
     public String process(HttpServletRequest request, HttpServletResponse response)throws Exception
     {
        //HttpSession category = request.getSession();
         //System.out.println("hello "+ConceptualProductDAO.getInstance().getAll("Digital Cameras"));
         
         request.setAttribute("all",ConceptualProductDAO.getInstance().getAll("Digital Cameras"));
         
        
        //request.setAttribute("all",all);
        //System.out.println("The selected value is "+category);
        //ConceptualProductDAO.getInstance().getAll("Digital Cameras")request.setAttribute("return",category);
        return "sale.jsp";
     }
}
